var GuideDlg = (function(){
    function GuideDlg(content,guideType,close_handler) {
        GuideDlg.super(this);
        this.close_handler = close_handler;
        this.guideText.text = content;
        switch (guideType) {
            case 1:
                this.ani1.visible = true;
                this.ani2.visible = false;
                break;
            default:
                this.ani1.visible = false;
                this.ani2.visible = true;
                break;
        }

        if(guideType != 1){
            this.on(Laya.Event.CLICK, this, function(){
                if(this.close_handler) this.close_handler();
                this.close();
            });
        }
    }

    Laya.class(GuideDlg, 'ui.guide', GuideUI);

    GuideDlg.prototype.showDlgAndMask = function(){
        this.popup(false);
    };

    return GuideDlg;
})();